package edu.bit.water.dao;

import edu.bit.water.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface WasteWaterEvaDao {
    int insertWasteWaterEva(WasteWaterEva WasteWaterEva) throws DataIntegrityViolationException;
    int insertWasteWaterEva2(WasteWaterEva2 WasteWaterEva2) throws DataIntegrityViolationException;
    Integer getMaxId();
    Integer getMaxId2();
    int deleteWasteWaterEva(@Param("id") int id);
    int deleteWasteWaterEva2(@Param("id2") int id);

    int updateWasteWaterEva(WasteWaterEva WasteWaterEva);
    int updateWasteWaterEva2(WasteWaterEva2 WasteWaterEva2);

    List<MetaDischarge> getBasis();
    List<MetaDischargeMaxPermission> getScope();
    List<MetaDischargeMaxPermission> getLevel();

    List<WasteWaterEva> selectWasteWaterEva();
    List<WasteWaterEva2> selectWasteWaterEva2();

    List<MetaDischarge> getStandardStatus();
}